﻿@model gnet1.Models.BmiViewModel

@{
  ViewBag.Title = "Body Mass Index Calcuation"; 
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div id="column_l">
  <h1>Fitness</h1>
  <h2>Tools - BMI Calulation</h2>
  @using (Html.BeginForm("BmiResults", "Fitness"))
  {
    @Html.ValidationSummary(true)
    <fieldset>
      <div class="editor-label">
        @Html.Label("Height (in) ")
      </div>
      <div class="editor-field">
        @Html.EditorFor(model => model.HeightInInches)
        @Html.ValidationMessageFor(model => model.HeightInInches)
     </div>
      <div class="editor-label">
        @Html.Label("Weight (lbs)")
      </div>
      <div class="editor-field">
        @Html.EditorFor(model => model.WeightInPounds)
        @Html.ValidationMessageFor(model => model.WeightInPounds)
      </div>
      <button type="submit">Submit</button>
    </fieldset>
  }
 
</div>
